#include "Task.h"

void task_Aiot(void *parameter)
{
  reconnect();
  MqttPublish(json_list());
  mqttClient.setCallback(callback);
  Serial.printf("\r\ntask_Aiot ready,stack=[%d]\r\n",uxTaskGetStackHighWaterMark(NULL));
  for(;;)
  {
 
    mqttClient.loop();
  vTaskDelay(1000);
   MqttPublish(json_list());
  }
  vTaskDelete(NULL);
}
